﻿using System;

namespace ConsoleApp5
{
    class Program
    {
        static void TestSwin(ISwim swim)
        {
            swim.Swim();
        }

        static void TestClimb(IClimb climb)
        {
            climb.Climb();
        }
        static void TestEat(IEat eat)
        {
            eat.Eat();
        }
        static void Main(string[] args)
        {
            Cat cat = new Cat("小白", "公");
            Dog dog = new Dog("甜鑫", "母");
            Monkey monkey = new Monkey("皮皮", "公");
            Duck duck = new Duck("丫丫", "母");
            TestClimb(cat);
            TestEat(cat);
            TestSwin(cat);
            cat.Play();
            Console.WriteLine();
            TestEat(dog);
            TestSwin(dog);
            dog.Play();
            Console.WriteLine();
            TestEat(duck);
            TestSwin(duck);
            duck.Play();
            Console.WriteLine();
            TestClimb(monkey);
            TestEat(monkey);
            monkey.Play();
        }
    }
}
